package com.xuln.member.dao.impl;

import java.util.List;

import com.xuln.framework.dao.BaseDao;
import com.xuln.framework.entity.PrimaryKey;
import com.xuln.member.dao.IMemberDao;
import com.xuln.member.entity.Member;

public class MemberDaoImpl extends BaseDao<Member, PrimaryKey> implements IMemberDao {

	public Member getMember(String username, String password) {
		String hql = "from Member where username=? and password=?";
		List<Member> list = find(hql, new Object[] { username, password });
		if (list != null && list.size() > 0) {
			return list.get(0);
		}
		return null;
	}
}
